﻿using UnityEngine;
using System.Collections;

public class DelayDisable : MonoBehaviour
{
    public float delay = 1f;
    public void OnEnable()
    {
        Invoke("DisActive", delay);
    }
    public void DisActive()
    {
        gameObject.SetActive(false);
    }
}
